﻿package mortal.game.net.command.task
{
    import Framework.MQ.*;
    import Message.Game.*;
    import mortal.game.net.broadCast.*;
    import mortal.game.scene3D.fight.*;
    import mortal.game.scene3D.layer3D.utils.*;
    import mortal.game.scene3D.player.entity.*;

    public class TaskEffectCommand extends BroadCastCall
    {

        public function TaskEffectCommand(param1:Object)
        {
            super(param1);
            return;
        }// end function

        override public function call(param1:MessageBlock) : void
        {
            var _loc_2:* = param1.messageBase as STaskAddEffect;
            var _loc_3:* = ThingUtil.entityUtil.getEntity(_loc_2.entityId) as SpritePlayer;
            if (_loc_3 != null)
            {
                SkillEffectUtil.addPlayerEffect(_loc_3, _loc_2.code.toString(), true);
            }
            return;
        }// end function

    }
}
